package com.javasea.csharp;

import net.sf.jni4net.Bridge;
import testdll.Class1;

import java.io.File;
import java.io.IOException;

/**
 *@ClassName Test
 *@Description TODO
 *@Author longxiaonan@163.com
 *@Date 2022/2/28 0028 15:44
 */
public class Test {

    public static void main(String[] args) throws IOException {
        Bridge.setVerbose(true);
        Bridge.init();
        File loadDll = new File("lib/TestDLL.j4n.dll");
        Bridge.LoadAndRegisterAssemblyFrom(loadDll);
        Class1 class1 = new Class1();
        int add = class1.add(2, 5);
        System.out.println(add);
    }

}
